package com.dao;

import java.util.List;
import java.util.Map;

import com.bean.Craft;
import com.bean.CraftShow;


public interface CraftDao {

	public abstract void save(Craft transientInstance);

	public abstract void delete(Craft persistentInstance);

	public abstract Craft findById(java.lang.Integer id);

	public abstract List findByExample(Craft instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByCraftCode(Object craftCode);

	public abstract List findByCraftName(Object craftName);

	public abstract List findByCraftTypeId(Object craftTypeId);

	public abstract List findByGradeId(Object gradeId);

	public abstract List findByStdTime(Object stdTime);

	public abstract List findByOutput(Object output);

	public abstract List findByStdPrice(Object stdPrice);

	public abstract List findByDemand(Object demand);

	public abstract List findByCount(Object count);

	public abstract List findByMemo(Object memo);

	public abstract List findAll();

	public abstract Craft merge(Craft detachedInstance);

	public abstract void attachDirty(Craft instance);

	public abstract void attachClean(Craft instance);
	
	/**
	 * 通过id查询工艺
	 */
	public abstract CraftShow findByCraft(int craftId);
	
	/**
	 * 查询所有工艺
	 */
	public abstract List<CraftShow> getFindCraft(String table,String pk,String sort,int PageNumber,int PageSize ,String options);
	
	/**
	 * 获取工艺编码
	 */
	public abstract String getCodeByType(int craftType);
}